package com.example.compare;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author houyangfan
 * @version 1.0
 * @date 2022/7/21 10:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Person {

    // equals时排除name字段的比较
    @EqualsAndHashCode.Exclude
    private String name;

    private String identify;

}
